package com.atguigu.crowd.entity;

import java.util.Date;

public class Role {
    private Integer id;

    private String name;

    private Date createtime;
    
    //无参构造
    public Role() {
		super();
	}

    //有参构造
	public Role(Integer id, String name, Date createtime) {
		super();
		this.id = id;
		this.name = name;
		this.createtime = createtime;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

	@Override
	public String toString() {
		return "Role [id=" + id + ", name=" + name + ", createtime=" + createtime + "]";
	}
    
    
}